package com.chenxin.interact.domain.dto;

import com.chenxin.interact.domain.sapDetail.SapIsReq;
import com.chenxin.interact.domain.sapDetail.SrmDeliverHead;
import com.chenxin.interact.domain.sapDetail.SrmDeliverItem;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.ToString;

import java.io.Serializable;
import java.util.List;


@Data
@ToString
public class SrmDeliverReqDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    @JsonProperty("IS_REQ")
    private SapIsReq isReq;

    @JsonProperty("IT_HEAD")
    private Head head;       // 主

    @JsonProperty("IT_ITEM")
    private Item item;      // 明细

    public static class Head {
        @JsonProperty("item")
        private List<SrmDeliverHead> headItems;

        public List<SrmDeliverHead> getHeadItems() {
            return headItems;
        }
    }

    public static class Item {
        @JsonProperty("item")
        private List<SrmDeliverItem> items;

        public List<SrmDeliverItem> getItems() {
            return items;
        }

    }
}
